import {Component, OnInit} from '@angular/core';

@Component({
    selector: 'kylin-home-page',
    templateUrl: './home-page.component.html',
    styleUrls: ['./home-page.component.less']
})
export class HomePageComponent implements OnInit {
    index = 0;
    config = {
        direction: 'horizontal',
        slidesPerView: 1,
        keyboard: true,
        mousewheel: true,
        navigation: true,
        pagination: true,
        speed: 400,
        spaceBetween: 100,
        autoplay: true
    };
    slides = [
        '../assets/img/login_bg.jpg',
        '../assets/img/login_bg.jpg',
        '../assets/img/login_bg.jpg',
        '../assets/img/login_bg.jpg',
        '../assets/img/login_bg.jpg'
    ];
    projects = [
        {
            title: '生态监测',
            src: '../assets/img/login_bg.jpg',
            url: '/home/front-page'
        },
        {
            title: '常规监测',
            src: '../assets/img/login_bg.jpg',
            url: '/home/not-developed'
        },
        {
            title: '遥感监测',
            src: '../assets/img/login_bg.jpg',
            url: '/home/not-developed'
        },
        {
            title: '移动巡护',
            src: '../assets/img/login_bg.jpg',
            url: '/home/not-developed'
        },
        {
            title: '生态评价',
            src: '../assets/img/login_bg.jpg',
            url: '/home/not-developed'
        },
        {
            title: '生态保护',
            src: '../assets/img/login_bg.jpg',
            url: '/home/not-developed'
        }
    ];

    constructor() {
    }

    ngOnInit() {
    }

    goToDetails(url: string) {

    }
}
